package com.example.forum.services;

import com.example.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author hanzishuai
 * @date 2025/4/12 11:46
 * @Description
 */
public interface IArticleReplyService {
    /**
     * Created by hanzishuai on 2025/4/12
     *
     * @param articleReply 帖子回复
     * @return void
     * @Description 新增帖子回复
     */
    @Transactional
    void creat(ArticleReply articleReply);

    /**
     * Created by hanzishuai on 2025/4/12
     *
     * @param articleId 帖子 Id
     * @return java.util.List<com.example.forum.model.ArticleReply>
     * @Description 根据帖子 Id 查询所有的列表
     */
    List<ArticleReply> selectByArticleId(Long articleId);

    /**
     * Created by hanzishuai on 2025/4/30
     *
     * @param articleReplyId
     * @return void
     * @Description 根据 帖子回复Id 删除帖子回复
     */
    @Transactional
    void delete(Long articleReplyId);


    /**
     * Created by hanzishuai on 2025/5/6
     * @param articleReplyId
     * @return com.example.forum.model.ArticleReply
     * @Description
     */
    ArticleReply selectByArticleReplyId(Long articleReplyId);

}



















